import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/about',
      component: () => import('../views/About.vue')
    },
    {
      path: '/topic',
      component: () => import('../views/Topics.vue')
    },
    {
      path: '/pinia',
      component: () => import('../views/Pinia.vue')
    },
  ],
})

export default router